package com.sikaryofficial.system.api.domain.customer;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 渠道商注册请求对象
 * @author qinjinyuan
 */
public class LoginChannelBodyBO {
    private String username;
    /**
     * 用户密码
     */
    private String password;
    /**
     * 邮箱地址
     */
    @NotBlank(message = "email can not be empty")
    @Length(max = 50, message = "email can not exceed 50 characters")
    @Email(regexp = "[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+", message = "email format error.")
    private String emailAddress;
    /**
     * 邮箱验证码
     */
    private String captchaCode;
    /**
     * 注册IP
     */
    private String registerIp;
    /**
     * 年龄
     */
    private Integer age;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public String getCaptchaCode() {
        return captchaCode;
    }

    public void setCaptchaCode(String captchaCode) {
        this.captchaCode = captchaCode;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
